import request from '@/utils/request'
// 获取 权限点列表
export const _getPermissionList = () => {
  return request.get('/sys/permission')
}
// 新增 权限点
export const _addPermission = (data) => {
  return request.post('/sys/permission', data)
}
// 删除 权限点
export const _deletePermission = (id) => {
  return request.delete(`/sys/permission/${id}`)
}
// 获取 权限点列表详情
export const _getPermissionDetail = (id) => {
  return request.get(`/sys/permission/${id}`)
}
// 修改 权限点列表
export const _updatePermission = (data) => {
  return request.put(`/sys/permission/${data.id}`, data)
}
